package com.lovejes.cuniao.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the cn_discuss table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="cn_discuss"
 */

public abstract class BaseCnDiscuss  implements Serializable {

	public static String REF = "CnDiscuss";
	public static String PROP_BUSID = "Busid";
	public static String PROP_FLAG = "Flag";
	public static String PROP_ISABLE = "Isable";
	public static String PROP_USERID = "Userid";
	public static String PROP_DISABLE = "Disable";
	public static String PROP_CREATETIME = "Createtime";
	public static String PROP_DISID = "Disid";
	public static String PROP_CONTENT = "Content";
	public static String PROP_ID = "Id";


	// constructors
	public BaseCnDiscuss () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseCnDiscuss (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String userid;
	private java.lang.String busid;
	private java.lang.String disid;
	private java.lang.String content;
	private java.util.Date createtime;
	private java.lang.String isable;
	private java.lang.String disable;
	private java.lang.String flag;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: USERID
	 */
	public java.lang.String getUserid () {
		return userid;
	}

	/**
	 * Set the value related to the column: USERID
	 * @param userid the USERID value
	 */
	public void setUserid (java.lang.String userid) {
		this.userid = userid;
	}



	/**
	 * Return the value associated with the column: BUSID
	 */
	public java.lang.String getBusid () {
		return busid;
	}

	/**
	 * Set the value related to the column: BUSID
	 * @param busid the BUSID value
	 */
	public void setBusid (java.lang.String busid) {
		this.busid = busid;
	}



	/**
	 * Return the value associated with the column: DISID
	 */
	public java.lang.String getDisid () {
		return disid;
	}

	/**
	 * Set the value related to the column: DISID
	 * @param disid the DISID value
	 */
	public void setDisid (java.lang.String disid) {
		this.disid = disid;
	}



	/**
	 * Return the value associated with the column: CONTENT
	 */
	public java.lang.String getContent () {
		return content;
	}

	/**
	 * Set the value related to the column: CONTENT
	 * @param content the CONTENT value
	 */
	public void setContent (java.lang.String content) {
		this.content = content;
	}



	/**
	 * Return the value associated with the column: CREATETIME
	 */
	public java.util.Date getCreatetime () {
		return createtime;
	}

	/**
	 * Set the value related to the column: CREATETIME
	 * @param createtime the CREATETIME value
	 */
	public void setCreatetime (java.util.Date createtime) {
		this.createtime = createtime;
	}



	/**
	 * Return the value associated with the column: ISABLE
	 */
	public java.lang.String getIsable () {
		return isable;
	}

	/**
	 * Set the value related to the column: ISABLE
	 * @param isable the ISABLE value
	 */
	public void setIsable (java.lang.String isable) {
		this.isable = isable;
	}



	/**
	 * Return the value associated with the column: DISABLE
	 */
	public java.lang.String getDisable () {
		return disable;
	}

	/**
	 * Set the value related to the column: DISABLE
	 * @param disable the DISABLE value
	 */
	public void setDisable (java.lang.String disable) {
		this.disable = disable;
	}



	/**
	 * Return the value associated with the column: FLAG
	 */
	public java.lang.String getFlag () {
		return flag;
	}

	/**
	 * Set the value related to the column: FLAG
	 * @param flag the FLAG value
	 */
	public void setFlag (java.lang.String flag) {
		this.flag = flag;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.cuniao.domain.CnDiscuss)) return false;
		else {
			com.lovejes.cuniao.domain.CnDiscuss cnDiscuss = (com.lovejes.cuniao.domain.CnDiscuss) obj;
			if (null == this.getId() || null == cnDiscuss.getId()) return false;
			else return (this.getId().equals(cnDiscuss.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}